home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / hotkey-setup.prerm < prev    next >
Text File  |  2008-10-15  |  570b  |  23 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if dpkg --compare-versions "$2" lt "0.1-19"; then
  6.     # setkeycodes exits with error sometimes (#437360) and has
  7.     # completely broken the upgrade path for some users.
  8.     # remove the saved state file if installed package prerm
  9.     # maintainer script fails.
  10.     rm -f /var/run/hotkey-setup
  11. fi
  12.  
  13. # Automatically added by dh_installinit
  14. if [ -x "/etc/init.d/hotkey-setup" ]; then
  15.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  16.         invoke-rc.d hotkey-setup stop || exit $?
  17.     else
  18.         /etc/init.d/hotkey-setup stop || exit $?
  19.     fi
  20. fi
  21. # End automatically added section
  22.  
  23.